package pharao.client.views.game.landkarte.ort.tutorium;

import pharao.client.views.game.landkarte.ort.tutorium.events.ShowTutoriumViewEvent;
import hmvc4gwt.client.event.IHmvcEvent;
import hmvc4gwt.framework.client.controller.GuiController;
import hmvc4gwt.framework.client.events.AddViewEvent;
import hmvc4gwt.framework.client.events.ResetViewEvent;

public class TutoriumController extends GuiController {

	protected void initImpl() {
		register(ShowTutoriumViewEvent.class, this);
	}

	public void handleEventImpl(IHmvcEvent event) {
		
		if (event instanceof ShowTutoriumViewEvent) {
			fireEventLocal(new ResetViewEvent());
			fireEvent(new AddViewEvent(getView()), true, false, false);
		}

	}

	public Class getClassOfObject() {
		return TutoriumController.class;
	}

}
